import { ITodo } from '@/pages/todolist/data'
import { Button } from 'antd'
import { FC } from 'react'


interface IItemProps {
  data: ITodo
}
const Item: FC<IItemProps> = ({ data }) => {
  const { value, completed, id } = data
  return (
    <div>
      <div>{value}</div>
      <input type='checkbox' checked={completed} onChange={() => { }}></input>
      <Button type='primary'>del</Button>
    </div>
  )
}
export default Item